html, body {
	width:100%;
}

body {
	background: #d1e1cc;
	margin: 0px;
	padding: 0px;
	font-family: sans-serif;
	font-size: medium;
}

#h1a {
	height: 20px;
	background: linear-gradient(#8dbf71, #44a51d);
	background: url("ui/header_bg.png") repeat-x;
	font-size: large;
	margin: 0px;
	padding: 10px 5px;
	overflow: hidden;
	color: #fefefe;
}

h2 {
	background: #a3a5a7;
	font-size: medium;
	margin: 0px;
	padding: 5px 5px;
	color: #fefefe;
}

h3 {
	margin: 5px 0px 2px 0px;
	padding: 0px 5px;
	font-size: small;
}

ul {
	list-style: none;
	padding: 0px 0px 0px 1px;
}

.normal {
	margin-left: 1%;
}

.left {
	margin-left: -100%;
}

/*
 * WORKAROUND - Setting to 100% doesn't draw anything on the screen 
 * even children elements with a negative margin.
 */
.right {
	margin-left: 99%;
}

.header_table {
	width:100%;
}

#settings_cell {
	width: 40px;
}

#settings_button {
	width: 40px;
	height: 40px;
	background: linear-gradient(#fcfcfc, #d1e1cc);
	background-image: url("ui/settings.png");
}

.selected {
	background-position: right bottom;
}

#settings {
	height: 275px;
	display: none;
}

#settings input {
	width: 76%;
	height: 36px;
	border: 1px solid #ccc;
	padding: 1px;
	margin-left: 1%;
}

#settings .button {
	width: 20%;
	margin-left: 79%;
	margin-top: -40px;
	padding: 10px 0px;
	height: 20px;
	text-align: center;
	background: url("ui/button_bg.png") repeat-x;
	color: #fefefe;
	font-weight: bold;
}

#main {
	background: linear-gradient(#44a51d, #d1e1cc);
	background: url("ui/main_bg.png") repeat-x;
	overflow: hidden;
	min-height: 272px;
	padding-top: 8px;
}

#topics {
    -webkit-transition: margin-left .3s linear;
	width: 98%;
	margin-right: 1%;
	height: 240px;
}

#topics_list {
	margin-top: 0px;
	margin-left: 1%;
	width: 98%;
}

#topics_list li {
	background: #f7f6f7;
	border-bottom: 2px solid #eceded;
	height: 4px;
	padding: 15px 2%;
	overflow: hidden;
}

#topics_list li.first {
	background: url("ui/shadow.png") repeat-x #f7f6f7;
}

#discussion {
    -webkit-transition: margin-left .3s linear;
	margin-top: -240px;
	padding: 0px 2%;
	width: 96%;
	overflow: visible;
}

/* 
 * Workaround: Chnage this to overflow hidden and out buttons inside of div.
 */
#discussion_nav {
	overflow:hidden;
	-webkit-transition: height .3s linear;
}

.closed {
	height: 0px;
}

.open {
	height: 40px;
}

#discussion_nav div {
	height: 38px;
	/*margin-top: -40px; Move to divs directly */
	text-align: center;
}
#discussion_nav div div {
	height: 40px;
	width: 40px;
	margin: 0px auto;
}

#back {
	margin-left: 1%;
	width:25%;
	background: url("ui/button_bg.png") repeat-x;
	border: 1px solid #999;
}

#back div {
	background: url("ui/back.png");
}

#prev {
	margin-top:-40px;
	margin-left: 32%;
	width:33%;
	background: url("ui/blue_bg.png") repeat-x;
	border: 1px solid #569ffb;
}

#prev div {
	background: url("ui/prev.png");
}

#next {
	margin-top:-40px;
	margin-left: 65%;
	width:33%;
	background: url("ui/blue_bg.png") repeat-x;
	border: 1px solid #569ffb;
}

#next div {
	background: url("ui/next.png");
}

#discussion_description {
	background: url("ui/shadow.png") #fefefe repeat-x;
	width: 96%;
	margin: auto;
	padding: 4px 2%;
	font-size: small;
}

#submissions {
	margin-top: 5px;
}

#submissions li {
	background-color: #dedfe0;
	background-position: 100% 9px; /* Changed to perscentage, right not working */
	background-repeat: no-repeat;
	border-top: 1px solid #c4c6c8;
	border-bottom: 1px solid #c4c6c8;
	padding: 9px 0px;
	overflow: hidden;
	font-weight: bold;
	font-size: medium;
	margin-top: -1px;
	color: #333;
}

.compact {
	background-image: url("ui/arrow.png");
	height: 15px;
}

.expanded {
	height:auto;
	background-image: url("ui/arrow_down.png");
}

#topics_title {
	width: 96%;
}

.plus {
	padding: 2px 5px;
	color: #fefefe;
	background: #4fc022;
	margin-left: 3px;
	text-align: center;
}

.minus {
	padding: 2px 5px;
	color: #fefefe;
	background: #c02317;
	margin-right: 3px;
	text-align: center;
}
